#! /bin/sh -e

ln -s /etc/james /var/lib/james/conf

update-alternatives --install /usr/share/james/james-server.jar james /usr/share/james/james-ldap-server.jar 10
update-alternatives --install /usr/share/james/james-server.jar james /usr/share/james/james-withoutldap-server.jar 20
update-alternatives --install /usr/share/james/james-server.jar james /usr/share/james/james-rabbitmq-withoutldap-server.jar 30
update-alternatives --install /usr/share/james/james-server.jar james /usr/share/james/james-rabbitmq-ldap-server.jar 40


systemctl enable james

